"""
    zip函数
"""
list_name = ["张无忌","赵敏","周芷若"]
list_room = [101,102,103]
# (第一个列表元素,第二个列表元素)
for item in zip(list_name,list_room):
    print(item)

map = [
    [2,0,0,2],
    [4,2,0,2],
    [2,4,2,4],
    [0,4,0,4]
]
# new_list = []
# for item in zip(map[0],map[1],map[2],map[3]):
#     new_list.append(list(item))

# new_list = []
# for item in zip(*map):
#     new_list.append(list(item))

# 列表推导式
new_list = [list(item) for item in zip(*map)]
print(new_list)

